package server.protocol.processor;

import server.command.receive.Command;
import server.config.processor.ConfigProcessor;
import server.exception.processor.ReceiveException;
import server.invoker.CommandInvoker;

public class ReceiveProtocolProcessor {
	
	public Command process(String rec) throws ReceiveException{
		String[] str = rec.split(" ");
		Command command = ConfigProcessor.getHp().get(str[0]);
		if(str.length > 0){
			command.setCommandValue(str[1]);
		}
		return command;
	}
}
